
package jpa.entities;
import java.io.Serializable;
import java.util.List;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Temporal;

@Entity
@Table(name="CUSTOMER")
public class Customer implements Serializable {
    private static final long serialVersionUID = 1L;
	@Id
	private Long id;		
	@Column(nullable = false)		
	private String firstName;		
	@Column(nullable = false)		
	private String lastName;		
	@Column(nullable = false)		
	private String email;		
	private String phoneNumber;		
	@Transient
	@Id
	private Long age;		
	@Column(nullable = false)		
	private String password;		
	private String language;		
	private String genere;		
	@Temporal(javax.persistence.TemporalType.DATE)
	private Date dateOfBirth;		
	private Boolean car;		
	@OneToOne
	private Adress adress;	

	public Customer(){
	}

	public Long getId(){
		return id;
	}

	public void setId(Long id){
		this.id = id;
	}
	
	public String getFirstName(){
		return firstName;
	}

	public void setFirstName(String firstName){
		this.firstName = firstName;
	}
	
	public String getLastName(){
		return lastName;
	}

	public void setLastName(String lastName){
		this.lastName = lastName;
	}
	
	public String getEmail(){
		return email;
	}

	public void setEmail(String email){
		this.email = email;
	}
	
	public String getPhoneNumber(){
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber){
		this.phoneNumber = phoneNumber;
	}
	
	public Long getAge(){
		return age;
	}

	public void setAge(Long age){
		this.age = age;
	}
	
	public String getPassword(){
		return password;
	}

	public void setPassword(String password){
		this.password = password;
	}
	
	public String getLanguage(){
		return language;
	}

	public void setLanguage(String language){
		this.language = language;
	}
	
	public String getGenere(){
		return genere;
	}

	public void setGenere(String genere){
		this.genere = genere;
	}
	
	public Date getDateOfBirth(){
		return dateOfBirth;
	}

	public void setDateOfBirth(Date dateOfBirth){
		this.dateOfBirth = dateOfBirth;
	}
	
	public Boolean getCar(){
		return car;
	}

	public void setCar(Boolean car){
		this.car = car;
	}
	
	public Adress getAdress(){
		return adress;
	}
	public void setAdress(Adress adress){
		this.adress = adress;
	} 	
}
